<template>
	<page-body>
		<view class="page">
			<view
				class="flex flex-direction flex-wrap align-stretch justify-center benben-position-layout flex system_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-stretch justify-between system_fd0_0'>
					<view class='flex flex-wrap align-center system_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
						data-url="1">
						<text class='fu-iconfont2  system_fd0_0_c0_c0'>&#xe794;</text>
					</view>
					<view class='flex flex-wrap align-center'>
						<text class='system_fd0_0_c1_c0'>设置</text>
					</view>
					<view class='flex align-center justify-end system_fd0_0_c2'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---基本设置flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch system_flex_1">
				<view class='flex flex-direction flex-wrap align-stretch system_fd1_0'>
					<view class='flex flex-wrap align-center justify-between system_fd1_0_c0' @tap.stop="handleJumpDiy" data-type="navigateTo" 
					:data-url="`/pages/xtsz/changePayPwdMessageCode/changePayPwdMessageCode?type=2`" v-if="user.is_pay_password == 1">
						<text class='system_fd1_0_c0_c0'>修改支付密码</text>
						<text class='fu-iconfont2  system_fd1_0_c0_c1'>&#xE7F2;</text>
					</view>
					<view class='flex flex-wrap align-center justify-between system_fd1_0_c0' @tap.stop="handleJumpDiy" data-type="navigateTo" 
					:data-url="`/pages/xtsz/changePayPwdMessageCode/changePayPwdMessageCode?type=1`" v-if="user.is_pay_password == 0">
						<text class='system_fd1_0_c0_c0'>设置支付密码</text>
						<text class='fu-iconfont2  system_fd1_0_c0_c1'>&#xE7F2;</text>
					</view>
					
					<view class='flex flex-wrap align-center justify-between system_fd1_0_c0' @tap.stop="handleJumpDiy" data-type="navigateTo" 
					:data-url="`/pages/xtsz/changeBingDingPhone/changeBingDingPhone`">
						<text class='system_fd1_0_c0_c0'>修改绑定手机号</text>
						<text class='fu-iconfont2  system_fd1_0_c0_c1'>&#xE7F2;</text>
					</view>
					<view class='flex flex-wrap align-center justify-between system_fd1_0_c2' @tap.stop="handleJumpDiy" data-type="navigateTo" 
					:data-url="`/pages/xtsz/paySz/paySz`">
						<text class='system_fd1_0_c0_c0'>支付设置</text>
						<text class='fu-iconfont2  system_fd1_0_c0_c1'>&#xE7F2;</text>
					</view>
				</view>
				
				<!-- <view class='flex flex-wrap align-center system_fd1_1'>
				</view>
				<view class='flex flex-direction flex-wrap align-stretch system_fd1_0' @tap.stop="cleanUpFunc()">
					<view class='flex flex-wrap align-center system_fd1_0_c2'>
						<text class='system_fd1_0_c0_c0'>清除缓存</text>
						<text class='system_fd1_2_c0_c1'>{{appRubbishCacheSize}}</text>
						<text class='fu-iconfont2  system_fd1_0_c0_c1'>&#xE7F2;</text>
					</view>
				</view> -->
				
			</view>

			<!---基本设置flex布局结束-->
			<benben-popup v-model="popupShow1656992350800" :mask="true" :mask-close-able="true" mode='center'>
				<!---退出登录flex布局开始-->
				<view class="flex flex-direction flex-wrap align-center system_flex_2"
					@tap.stop="popupShow1650940432200=true">
					<text class='system_fd2_0'>提示</text>
					<text class='system_fd2_1'>确定退出当前账号？</text>
					<view class='flex align-center system_fd2_2'>
						<button class='system_fd2_2_c0' @tap.stop="popupShow1656992350800=false">取消</button>
						<button class='system_fd2_2_c1' @tap.stop="logOutFunc()">确定</button>
					</view>
				</view>

				<!---退出登录flex布局结束-->

			</benben-popup>
			<view class="flex flex-wrap align-center justify-center benben-position-layout flex system_flex_3"
				@tap.stop="popupShow1656992350800=true">
				<text class='system_fd3_0'>退出登录</text>

			</view>
			<view :style="{height: '110rpx'}"></view>


		</view>
	</page-body>
</template>
<script>
	export default {
		components: {},


		data() {
			return {
				"popupShow1656992350800": false,
				user:'',
			};
		},
		computed: {
			appRubbishCacheSize() { // 获取缓存大小
				return this.$store.state.appRubbishCacheSize
			}
		},
		watch: {},
		onLoad(options) {

		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {
			this.$store.dispatch('getAppCache') // 更新缓存大小
			this.getfdc78c4772da97Func()
		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//个人中心-获取会员详细信息
			async getfdc78c4772da97Func() {
			        let datauser = await this.$api.get(global.apiUrls.post5c78c4772da97, {
			
			        });
			
			        if (datauser.data.code != 1) {
			            this.$message.info(datauser.data.msg);
			            return
			        }
			        let infouser = datauser.data;
			        this.user = infouser.data
			},
			//清除缓存
			cleanUpFunc() {
				this.$store.dispatch('appClearCache')

			},
			//退出登录
			logOutFunc() {
				this.$store.commit('logout')
				this.$urouter.switchTab(`/pages/tabBar/index/index`);
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: rgba(248, 248, 248, 1);
		background-size: 100% auto;
	}

	.system_flex_0 {
		border-bottom: 1px solid #eee;
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.system_fd0_0_c2 {
		padding: 0rpx 0rpx 0rpx 0rpx;
		width: 100rpx;
	}

	.system_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: var(--benbenFontColor0);
	}

	.system_fd0_0_c0_c0 {
		font-size: 36rpx;
		font-weight: 400;
		color: #333;
	}

	.system_fd0_0_c0 {
		width: 100rpx;
	}

	.system_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		line-height: 88rpx;
	}

	.system_flex_1 {
		font-size: 32rpx;
	}

	.system_fd1_2_c0_c1 {
		font-size: 28rpx;
		color: rgba(102, 102, 102, 1);
		margin: 0rpx 24rpx 0rpx auto;
	}

	.system_fd1_1 {
		background: rgba(248, 248, 248, 1);
		height: 20rpx;
		background-size: 100% auto !important;
	}

	.system_fd1_0_c2 {
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.system_fd1_0_c0_c1 {
		font-size: 26rpx;
		color: rgba(191, 191, 191, 1);
	}

	.system_fd1_0_c0_c0 {
		font-size: 32rpx;
		color: var(--benbenFontColor0);
	}

	.system_fd1_0_c0 {
		border-bottom: 1px solid #eee;
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.system_fd1_0 {
		background: #fff;
		padding: 0rpx 32rpx 0rpx 32rpx;
		background-size: 100% auto !important;
	}

	.system_flex_2 {
		background: #fff;
		width: 540rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
	}

	.system_fd2_2_c1 {
		border-top: 1px solid #eee;
		border-left: 1px solid #eee;
		background: #fff;
		line-height: 110rpx;
		border-radius: 0rpx 0rpx 16rpx 0rpx;
		font-size: 32rpx;
		color: var(--benbenFontColor4);
		width: 268rpx;
	}

	.system_fd2_2_c0 {
		border-top: 1px solid #eee;
		background: #fff;
		line-height: 110rpx;
		border-radius: 0rpx 0rpx 0rpx 16rpx;
		font-size: 32rpx;
		color: rgba(153, 153, 153, 1);
		padding: 0rpx 103rpx 0rpx 103rpx;
	}

	.system_fd2_2 {
		margin: 37rpx 0rpx 0rpx 0rpx;
	}

	.system_fd2_1 {
		line-height: 44rpx;
		font-size: 32rpx;
		font-weight: 500;
		color: #333333;
	}

	.system_fd2_0 {
		font-size: 36rpx;
		font-weight: 800;
		line-height: 44rpx;
		color: #333333;
		margin: 40rpx 0rpx 40rpx 0rpx;
	}

	.system_flex_3 {
		background: #fff;
		width: 750rpx;
		height: 110rpx;
		overflow: hidden;
		z-index: 10;
		bottom: calc(0rpx + var(--window-bottom));
		background-size: 100% auto !important;
	}

	.system_fd3_0 {
		color: #FF8E21;
		font-size: 32rpx;
		font-weight: 500;
		line-height: 45rpx;
		text-align: center;
		font-style: normal;
	}
</style>
